<?php
/**
 * @package EasyTop
 * @subpackage PlusTheme
 */
?>
<div class="wrapper col4">
  <div id="footer">
    <div class="box1">
      <h2>About Us:</h2>
      <img class="imgl" src="<?php bloginfo('stylesheet_directory')?>/images/logo.png" alt="" />
	  <p>In order to pursue today's capricious markets, it is a need to have not only a reliable, but also a competent supplier, which can dedicate the endeavor incessantly and provide an all-in-one services simultaneously. Easy Top Industrial Ltd. is a leading provider of kitchen cabinet, bathroom cabinet and sanitaryware etc. ...</p>
	  <p class="readmore"><a href="/about">Continue Reading &raquo;</a></p>
    </div>
    <div class="box contactdetails">
      <h2>Contact Us:</h2>
      <ul>
        <li style="font-weight:bold;">Easy Top Industrial ltd.</li>
        <li>Hadi Industrial Park, Nan Cheng District</li>
        <li>Dongguan City, Guangdong Province, P.R.China</li>
        <li>Postcode: 523082</li>
        <li>Tel: 0086 137 5113 5656</li>
        <li>MSN: <a href="msnim:add?contact=davidbms7@gmail.com">DAVIDBMS7@GMAIL.COM</a></li>
        <li>Email: <a href="mailto:info@easytopltd.com">INFO@EASYTOPLTD.COM</a></li>
        <li class="last">Skype: <a href="skype:cabinetrysolution?call">cabinetrysolution</a></li>
      </ul>
    </div>
    <div class="box indexproductbox">
      <h2>Recomended Products:</h2>
      <div class="wrap">
        <div class="fix"></div>
		<?php $counter = 1;?> 
		<?php $rand_posts = get_posts('numberposts=6&orderby=rand');  foreach( $rand_posts as $post ) : ?>
		<?php
		$id =$post->ID;
		$the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");
		$pattern = '!<img.*?src="(.*?)"!';
		preg_match_all($pattern, $the_content, $matches);
		$image_src = $matches['1'][0];
		if(!$image_src) $image_src = get_bloginfo('stylesheet_directory').'/images/thumbnail.jpg';
		$image_src = get_bloginfo('stylesheet_directory').'/phpthumb/phpThumb.php?src='.$image_src.'&amp;w=80&amp;h=80&amp;zc=1';
		?>
		<div class="indexproduct_badge_image" id="indexproduct_badge_image<?php echo $counter?>"><a href="<?php the_permalink() ?>"><img width="80" height="80" src="<?php echo $image_src; ?>" alt="<?php the_title(); ?>" /></a></div>
		<?php $counter++; ?>
		<!--
        <div class="indexproduct_badge_image" id="indexproduct_badge_image1"><a href="#"><img src="images/demo/80x80.gif" alt="" /></a></div>
        <div class="indexproduct_badge_image" id="indexproduct_badge_image2"><a href="#"><img src="images/demo/80x80.gif" alt="" /></a></div>
        <div class="indexproduct_badge_image" id="indexproduct_badge_image3"><a href="#"><img src="images/demo/80x80.gif" alt="" /></a></div>
        <div class="indexproduct_badge_image" id="indexproduct_badge_image4"><a href="#"><img src="images/demo/80x80.gif" alt="" /></a></div>
        <div class="indexproduct_badge_image" id="indexproduct_badge_image5"><a href="#"><img src="images/demo/80x80.gif" alt="" /></a></div>
        <div class="indexproduct_badge_image" id="indexproduct_badge_image6"><a href="#"><img src="images/demo/80x80.gif" alt="" /></a></div>-->
		<?php endforeach; ?>
        <div class="fix"></div>
      </div>
    </div>
    <br class="clear" />
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper col5">
  <div id="copyright">
    <p class="fl_left">Copyright &copy; 2008-2012 - All Rights Reserved - <a href="http://www.easytopltd.com/">Easy Top Industrial Ltd.</a></p>
    <!--<p class="fl_right"><a href="http://www.easytopltd.com/" title="EasytopLtd">www.easytopltd.com</a></p>-->
    <br class="clear" />
  </div>
</div>
<?php wp_footer(); ?>
</body>
</html>